Tag Link | [Integer->BitTest] | Category | Math |
---|---|---|---|
Type | Member | Source Available | No |
Support | Preferred | Version | 5.0 |
Change | Unchanged | Data Source | Any |
Output Type | Boolean | Security | None |
Implementation | LCAPI | Sets | Lasso 8.5, Lasso 8.0, Lasso 7.0, Lasso 6.0, Lasso 5.0 |
[Integer->BitTest] returns True if the bit specified in the integer parameter is 1 or False otherwise. The bit index should be between 1 and 64.
[Integer Variable->(BitTest: Bit Index)]
Required Parameters | |
---|---|
Bit Index | The index of the bit which is to be inspected. |
To test a bit from an integer value:
Use the [Integer->BitTest] tag. The following example shows a test of bit 3 on the integer 7 (0111) which returns True.
[Variable: 'Result'=7]
[Output: ($Result)->(BitTest: 3)]
True